import {Store} from "../enums/Store";
import {latestListInterface} from "./latestListInterface";

export interface StoreInterface {
  [Store.Skin]:{
    skin:SkinInterface
  },
   [Store.IsModal]:{
    modal:ModalInterface
  },
  [ Store.IsLogin ]: isLoginInterface,

  [Store.Recommend]: recommentInterface,
  [Store.Latest]: {
    rank:latestListInterface
  },
  [Store.LatestDetail]:{
    songsLists:latestDetailInterface
  },
	[Store.CurrentSongs]:{
		currentSongs:currentSongsInterface
	}
}
export interface SkinInterface {
    value:string
}
export interface ModalInterface{
	value:boolean
}

export interface isLoginInterface {
  isLogin:string
}


export interface recommentInterface {
 recommendLists:recommendListsInterface[]
}

export interface LatestInterface {
  Lists:ListInterface[]
}

export interface ListInterface {
  imgurl:string,
  rankid:number,
  rankname:string
}

export interface  recommendListsInterface{
  hash:string,
  album_id:string,
  audio_id:string,
  filename:string
}

export interface latestDetailInterface {
 songs:SongsInterface[]

}

export interface SongsInterface{
  filename:string,
  hash:string,
  album_id:string
  audio_id:string,
}

export interface currentSongsInterface{
	url:string,
	time:number,
	songName:string,
	imgUrl:string
}
